package com.zimin.cloud.file.controller.api;

import com.zimin.shared.pojo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author zimin
 * @since 2021/10/27 5:27 下午
 */
@RequestMapping("/file")
@Api(value = "文件上传", tags = {"文件上传"})
public interface IFileUploadController {


    /**
     * 上传单图
     *
     * @return
     */
    @ApiOperation(value = "上传单张图片", notes = "上传单张图片", httpMethod = "POST")
    @PostMapping("/uploadImage")
    Result uploadImage(@RequestPart(value = "file") MultipartFile file) throws Exception;

}
